package cn.iocoder.yudao.module.handguard.controller.app.orders.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author: liuweijun
 * @since: 2023/9/13 16:12
 * @description:
 */
@Data
public class OrdersResVo {

    @Schema(description = "订单号")
    private Long orderId;

    @Schema(description = "流程")
    private Integer orderStatus;

    @Schema(description = "流程")
    private Integer applyState;

    @Schema(description = "订单状态中文")
    private String orderStatusZh;

    @Schema(description = "订单流程中文")
    private String orderFlowZh;

    @Schema(description = "产品id")
    private String productIdArr;

    @Schema(description = "申请人")
    private String name;

    @Schema(description = "客户电话")
    private String mobile;

    @Schema(description = "产品名称")
    private String productName;

    @Schema(description = "预估额度")
    private String amount;

    @Schema(description = "实际放款金额")
    private String practicalAmount;

    @Schema(description = "资料审核结果")
    private String auditMsg;

    @Schema(description = "失败原因")
    private String causeOfFailure;

    @Schema(description = "驳回时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime rejectTime;

    @Schema(description = "订单时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


    @Schema(description = "订单时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime practicalTime;
}
